$primary: #fea203;
$primary: #fea203;
$info: #556fb5;
$warn: orange;
$error: red;
$success: green;
$FONTSIZE: 14px;

$border: #ebebeb;
$background: #f7f7f7;

$textColor: #1f1f1f;
$textGrey: #c7c7c7;

$darkBackground: rgba(0, 0, 0, 0.75);

$gradientPrimary: linear-gradient(170deg, #fea203, #fea203);

$movieColor: #bfa475;
$movieGrey: #62543c;
$movieBackground: rgba(41, 41, 41, 1);

// 定位混入
@mixin absoluteToSide($direction: bottom) {
  position: absolute;
  @if $direction==bottom {
    left: 0;
    right: 0;
    bottom: 0;
  } @else if $direction==top {
    left: 0;
    right: 0;
    top: 0;
  } @else if $direction==left {
    left: 0;
    top: 0;
    bottom: 0;
  } @else if $direction==right {
    right: 0;
    top: 0;
    bottom: 0;
  }
}
// 按钮
@mixin button($color: $primary) {
  padding: 5px 10px;
  background: $color;
  color: white;
  border: 1px solid $color;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  &:hover {
    background: white;
    color: $primary;
  }
}
// 边框
@mixin border($color: $border) {
  border: 1px solid $color;
}
// 字母超过要换行
@mixin wordBreak {
  word-break: break-all;
  word-wrap: break-word;
  white-space: wrap;
}
@mixin ellipsis2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@mixin flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
@mixin flex-start {
  display: flex;
  align-items: center;
}

@mixin flex-row-center {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@mixin flex-tab-center {
  display: flex;
  flex-direction: row;
  height: 55px;
  padding: 0 75px;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 10px 10px;
}

@mixin hideScrollBar {
  &::-webkit-scrollbar {
    display: none;
  }
}
